#include <bits/stdc++.h>
using namespace std;
int main()
{
    try
    {
        cout << 3 / 0;
    }
    catch (const std::exception &e)
    {
        cout << "除以零错误";
        std::cerr << e.what() << '\n';
    }

    return 0;
}